#!/bin/bash

chmod -R 777 "/Library/Application Support/Gradual Software"

SERVICE=`find "/Applications/Enfocus/Enfocus Switch 08" -name "PowerSwitch_Service"`

# Unstall first
"$SERVICE" -u

# Install
"$SERVICE" -i

sh -c "export TMPDIR=/private/tmp; open -a \"/Applications/Enfocus/Enfocus Switch 08/PowerSwitch.app\""

exit
